package io;

import java.io.*;

public class test03 {
    public static void main(String[] args) throws IOException {
        String line;
        File dir = new File("./src/main/java/io");
        if(dir.isDirectory()){
            File[] subs = dir.listFiles((f)->f.getName().endsWith(".java"));
            for (int i = 0; i < subs.length; i++) {
                File sub = subs[i];
                FileInputStream fis = new FileInputStream(sub);
                InputStreamReader isr = new InputStreamReader(fis);
                BufferedReader br = new BufferedReader(isr);
                while ((line = br.readLine())!=null){
                    System.out.println(line);
                }
            }
        }
    }
}
